package com.ruoyi.system.mapper.shopping;

import com.ruoyi.system.domain.shopping.Area;
import com.ruoyi.system.domain.shopping.dto.CollectDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CollectMapper {
    List<CollectDto> selectCollectDtoByUserId(Integer userId);

    int isExistCollect(@Param("userId")Integer userId,@Param("productId") Integer productId);

    int unCollect(@Param("userId")Integer userId,@Param("productId") Integer productId);

    int collect(@Param("userId")Integer userId,@Param("productId") Integer productId);
}
